package demo;

public class Person implements Cloneable{
    public int id;

    public Person(int id) {
        this.id = id;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                '}';
    }
   /* public static void main(String[] args) throws CloneNotSupportedException{
        Person person = new Person(99);
        Person person1 = (Person) person.clone();
        System.out.println(person);
        System.out.println(person1);
    }*/
}
